import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Questions } from './questions.entity';
import { QuestionsController } from './questions.controller';
import { QuestionsService } from './questions.service';
import { Answer } from '../answer/answer.entity';
import { RewardSuccess } from '../rewardSuccess/rewardSuccess.entity';
import { Reward } from '../reward/reward.entity';
import { Video } from '../video/video.entity';
import { Profit } from '../profit/profit.entity';
import { Notices } from '../notices/notices.entity';
import { ScheduleModule } from '@nestjs/schedule';
import { WsStartGateway } from '../ws/ws.gateway';

@Module({
  imports: [
    ScheduleModule.forRoot(),
    TypeOrmModule.forFeature([Questions, Answer, RewardSuccess, Reward, Video, Profit, Notices])
  ],
  controllers: [QuestionsController],
  providers: [QuestionsService, WsStartGateway],
})
export class QuestionsModule {}
